package test.common.model;

import java.util.ArrayList;
import java.util.List;

public class Humman {
	
	 private String name;
	 
	 private Integer age;
	 
	 private String addr;
	 
	 private String email;
	 
	 private Type type;
	 
	 private PersonU pu;
	 
	 private List<PersonU> listPu = new ArrayList<>();;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	

	public PersonU getPu() {
		return pu;
	}

	public void setPu(PersonU pu) {
		this.pu = pu;
	}

	public List<PersonU> getListPu() {
		return listPu;
	}

	public void setListPu(List<PersonU> listPu) {
		this.listPu = listPu;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Humman [name=" + name + ", age=" + age + ", addr=" + addr + ", email=" + email + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Humman other = (Humman) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	 
	 
}
